﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Fixx.Connector
{
    class FixxStatus
    {
        public bool Success { get; private set; }
        public FixxError Error { get; private set; }
		public string Result { get; private set; }

        public FixxStatus(FixxError error)
        {
            this.Success = false;
            this.Error = error;
        }
		public FixxStatus(string result)
		{
			this.Success = true;
			this.Result = Regex.Replace(result, "[\x00-\x1F]+", "");
		}
    }
}
